7488073db94e839d81bcf802e139c897fc16f30d,flex/flex-tests/testSrc/com/intellij/lang/javascript/ConversionTestBaseEx.java,ConversionTestBaseEx,doTest,#String#boolean#,79
Before Change
String path = getHomePath() + getBasePath() + testName;
final File globalBefore = new File(path, "global_before");
ApplicationManager.getApplication().runWriteAction(new Runnable() {
@Override
public void run() {
try {
if (checkJdk()) {
Element d = JDOMUtil.load(new File(globalBefore, JDK_TABLE_XML));
ConversionHelper.expandPaths(d);
((ProjectJdkTableImpl)ProjectJdkTable.getInstance()).loadState(d);
}
{
Document d = JDOMUtil.loadDocument(new File(globalBefore, GLOBAL_LIBS_XML));
ConversionHelper.expandPaths(d.getRootElement());
ApplicationLibraryTable.getApplicationTable().loadState(d.getRootElement());
}
}
catch (Exception e) {
throw new RuntimeException(e);
}
}
});
if (!super.doTest(testName, conversionShouldHappen)) {
return false;
After Change
String path = getHomePath() + getBasePath() + testName;
final File globalBefore = new File(path, "global_before");
ApplicationManager.getApplication().runWriteAction(() -> {
try {
if (checkJdk()) {
Element d = JDOMUtil.load(new File(globalBefore, JDK_TABLE_XML));
ConversionHelper.expandPaths(d);
((ProjectJdkTableImpl)ProjectJdkTable.getInstance()).loadState(d);
}
{
Element d = JDOMUtil.load(new File(globalBefore, GLOBAL_LIBS_XML));
ConversionHelper.expandPaths(d);
ApplicationLibraryTable.getApplicationTable().loadState(d);
}
}
catch (Exception e) {
throw new RuntimeException(e);
}
});
if (!super.doTest(testName, conversionShouldHappen)) {
return false;